package com.moetube.user.feign;

import com.moetube.entity.Result;
import com.moetube.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "user")
@RequestMapping("/user")
public interface UserFeign {
    @GetMapping("/{id}")
    public Result findByUserId(@PathVariable("id") String id);
    @GetMapping("/load/{username}")
    public Result<User> findByUsername(@PathVariable("username") String username);

}
